import Vue from 'vue'
import VueRouter from 'vue-router'
import goods from '../views/goods.vue'
import sellers from '../views/sellers.vue'
import gs from '../views/gs.vue'
import goodsedit from '../views/goodsedit.vue'
import goodsadd from '../views/goodsadd.vue'
import sellersedit from '../views/sellersedit.vue'
import sellersadd from '../views/sellersadd.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'goods',
    component: goods
  },
  {
    path: '/goods',
    component: goods
  },
  {
    path: '/sellers',
    component: sellers
  },
  {
    path: '/gs',
    component: gs
  },
  {
    path: '/goodsedit',
    component: goodsedit
  },
  {
    path: '/goodsadd',
    component: goodsadd
  },
  {
    path: '/sellersedit',
    component: sellersedit
  },
  {
    path: '/sellersadd',
    component: sellersadd
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
